package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资需求对象 donation_need
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
public class DonationNeed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long needId;

    /** 求助者ID */
    @Excel(name = "求助者ID")
    private Long userId;

    /** 物资类型 */
    @Excel(name = "物资类型")
    private String materialType;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long quantity;

    /** 紧急程度（0一般 1紧急） */
    @Excel(name = "紧急程度", readConverterExp = "0=一般,1=紧急")
    private String urgencyLevel;

    /** 状态（0待审核 1已发布 2已分配 3已完成） */
    @Excel(name = "状态", readConverterExp = "0=待审核,1=已发布,2=已分配,3=已完成")
    private String status;

    /** 需求地区 */
    @Excel(name = "需求地区")
    private String regionCode;

    public void setNeedId(Long needId) 
    {
        this.needId = needId;
    }

    public Long getNeedId() 
    {
        return needId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setMaterialType(String materialType) 
    {
        this.materialType = materialType;
    }

    public String getMaterialType() 
    {
        return materialType;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setUrgencyLevel(String urgencyLevel) 
    {
        this.urgencyLevel = urgencyLevel;
    }

    public String getUrgencyLevel() 
    {
        return urgencyLevel;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("needId", getNeedId())
            .append("userId", getUserId())
            .append("materialType", getMaterialType())
            .append("quantity", getQuantity())
            .append("urgencyLevel", getUrgencyLevel())
            .append("status", getStatus())
            .append("regionCode", getRegionCode())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
